//
//  OrderManagerSearchView.m
//  YongChuanTradingArea
//
//  Created by 李冰 on 2017/9/15.
//  Copyright © 2017年 李冰. All rights reserved.
//

#import "OrderManagerSearchView.h"

@implementation OrderManagerSearchView
- (void)awakeFromNib {

    [super awakeFromNib];
    
    _contentView.layer.cornerRadius = 15;
}
- (void)textFieldDidBeginEditing:(UITextField *)textField {
    
    _placeHolder.hidden = YES;
    _iconLeading.constant = 10;
}

- (void)textFieldDidEndEditing:(UITextField *)textField {
    
    if (textField.text.length == 0)
    {
        _placeHolder.hidden = NO;
        _iconLeading.constant = 100;
    }
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField {
    
    return YES;
}

@end
